package com.yipei.business.service;

import java.io.IOException;
import java.util.List;
import com.yipei.business.domain.MlKLineMaster;
import com.yipei.business.vo.MlKLineMasterVo;
import com.yipei.business.vo.TodayDaealVo;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;

/**
 * 行情Service接口
 *
 * @author yipei
 * @date 2024-12-20
 */
public interface IMlKLineMasterService
{
    /**
     * 查询行情
     *
     * @param id 行情主键
     * @return 行情
     */
    public MlKLineMaster selectMlKLineMasterById(Long id);

    /**
     * 查询行情列表
     *
     * @param mlKLineMaster 行情
     * @return 行情集合
     */
    public List<MlKLineMaster> selectMlKLineMasterList(MlKLineMaster mlKLineMaster);

    /**
     * 新增行情
     *
     * @param mlKLineMaster 行情
     * @return 结果
     */
    public int insertMlKLineMaster(MlKLineMaster mlKLineMaster);

    /**
     * 修改行情
     *
     * @param mlKLineMaster 行情
     * @return 结果
     */
    public int updateMlKLineMaster(MlKLineMaster mlKLineMaster);

    /**
     * 批量删除行情
     *
     * @param ids 需要删除的行情主键集合
     * @return 结果
     */
    public int deleteMlKLineMasterByIds(Long[] ids);

    /**
     * 删除行情信息
     *
     * @param id 行情主键
     * @return 结果
     */
    public int deleteMlKLineMasterById(Long id);

    List<MlKLineMasterVo> getSymbolInfo(String f12, String f14) throws IOException, InterruptedException;

    List<MlKLineMasterVo> getAguMklines(List<String> codes) throws IOException, InterruptedException;

    List<MlKLineMasterVo> getIndexData(HttpClient client, HttpGet request) throws IOException, InterruptedException;

    List<MlKLineMasterVo> getKeChuangData(HttpClient client, HttpGet request) throws IOException, InterruptedException;

    List<MlKLineMasterVo> getChuangYeBan(HttpClient client, HttpGet request) throws IOException, InterruptedException;

    List<TodayDaealVo> fetchLatestTicks(String sh601398, int i);
}
